package io.xxx.xbutler.client;

import io.xxx.xbutler.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;

@FeignClient("x-product")
public interface ProductClient {

    @GetMapping("/product/get")
    Product getProduct(@RequestParam String skuSn);

    @GetMapping("/product/sale/get")
    Product getSaleProduct(@RequestParam Long storeId, @RequestParam String skuSn, @RequestParam LocalDateTime date);
}
